class A:
    def hi(self):
        print("A")


class B(A):
    def hi(self):
        print("B")


class C(A):
    def hi(self):
        print("C")


class D(B, C):
    def call_hi(self):
        C.hi(self)


d = D()
d.call_hi()